﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIC_Notification
{
    public class Attachment
    {
        // public bool hasAttachment;
        public string Url;
        public string FileName;
        public DateTime CreationDate;
        public DateTime LastModifiedDate;

        public Attachment()
        {
            FileName = "";
        }

        public string GetFileName()
        {
            return Path.GetFileName(FileName);
        }

        public string GetFileNameWithoutExtension()
        {
            return Path.GetFileNameWithoutExtension(FileName);
        }

        public string GetExtension()
        {
            return Path.GetExtension(FileName);
        }
    }
}
